﻿using ValidationAction;

namespace ActionHandlers.Bisness
{
    public class ResultAction : Operations.Operation<int>
    {
        public override int Execute()
        {
            var oneResult = Processor.SetAction(() => new OneChildResultAction()).Execute<int>();
            var twoResult = Processor.SetAction(() => new TwoChildResultAction()).Execute<int>();

            var result = 2 + oneResult + twoResult;

            return result;
        }
    }
}